package com.weirong.smartvault.backservice.entity_model;

import com.weirong.smartvault.entity.Stock;

/**
 * 于2017/12/18由 KFEB4 创建 .
 * 将库存信息转为符合TempMoneyLog的鸭子类型
 */
public class StockModel {
    private Stock stock;
    public StockModel(Stock stock){
        this.stock = stock;
    }
    public Integer getDenominationValue(){
        //获取面额
        return stock.getBox().getDenominationValue();
    }

    public Integer getAmount(){
        return stock.getAmount();
    }


    public String getTypeCode(){
        return stock.getBox().getTypeCode();
    }
}
